package com.matt.domain.rel;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/19
 * *******************************
 */
@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@Table(name = "rel_classes_course_topic")
public class RelClassesCourseTopic extends Model{
    private String classesId;
    private String topicId;

    public static RelClassesCourseTopic of(String classesId, String topicId){
        RelClassesCourseTopic rel = new RelClassesCourseTopic();
        rel.setClassesId(classesId);
        rel.setTopicId(topicId);
        return rel;
    }
}
